#define _CRT_SECURE_NO_WARNINGS 1
#include"Stack.h"
void TestStack()
{
	ST st;
	StackInit(&st);

	//ѹջ
	StackPush(&st, 1);
	StackPush(&st, 2);
	StackPush(&st, 3);
	printf("%d", StackTop(&st));//3
	StackPop(&st);

	printf("%d", StackTop(&st));//2
	StackPop(&st);

	StackPush(&st, 4);
	StackPush(&st, 5);
	while (!StackEmpty(&st))
	{
		printf("%d", StackTop(&st));
		StackPop(&st);
	}

	StackDestroy(&st);
}
int main()
{
	TestStack();

	return 0;
}